import { getMovieListRequest } from "../../api/movieRequest"
import { GETMOVIELIST } from "../constants/movieConst"
import store from "../store"
export const getMovieList=()=>{
    return async()=>{
        const re = await getMovieListRequest()
        store.dispatch({
            type:GETMOVIELIST,
            data:re.data.data.list
        })
    }
}